import axios from './axios'

// 客户收款查询
export function list(params){
  return axios({
    url:'/customerGathering/list',
    params
  })
}

// 结账 生成客户收款数据
export function add(data){
  return axios({
    method: 'post',
    url:'/customerGathering/add',
    data
  })
}

// 改单
export function update(data){
  return axios({
    method: 'put',
    url:'/customerGathering/update',
    data
  })
}

// 删除
export function del(params){
  return axios({
    method: 'delete',
    url:'/customerGathering/delete',
    params
  })
}

// 获取所有收支银行数据
export function bankList(){
  return axios({
    url:'/income-expenses-bank/list'
  })
}

// 新增收支银行数据
export function insert(data){
  return axios({
    method: 'post',
    url:'/income-expenses-bank/insert',
    data
  })
}

// 根据收款序号查找收款单据
export function getObjBySequence(params){
  return axios({
    url:'/customerGathering/getObjBySequence',
    params
  })
}